package com.syezon.wifikey.speed;

import android.os.Parcel;
import android.os.Parcelable;

public class SpeedTestResult implements Parcelable {

    private double wide;
    private double delay;
    private double dl;
    private double up;
    private int movieScore;
    private int shortVideoScore;
    private int gameScore;

    public double getWide() {
        return wide;
    }

    public void setWide(double wide) {
        this.wide = wide;
    }

    public double getDelay() {
        return delay;
    }

    public void setDelay(double delay) {
        this.delay = delay;
    }

    public double getDl() {
        return dl;
    }

    public void setDl(double dl) {
        this.dl = dl;
    }

    public double getUp() {
        return up;
    }

    public void setUp(double up) {
        this.up = up;
    }

    public int getMovieScore() {
        return movieScore;
    }

    public void setMovieScore(int movieScore) {
        this.movieScore = movieScore;
    }

    public int getShortVideoScore() {
        return shortVideoScore;
    }

    public void setShortVideoScore(int shortVideoScore) {
        this.shortVideoScore = shortVideoScore;
    }

    public int getGameScore() {
        return gameScore;
    }

    public void setGameScore(int gameScore) {
        this.gameScore = gameScore;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.wide);
        dest.writeDouble(this.delay);
        dest.writeDouble(this.dl);
        dest.writeDouble(this.up);
        dest.writeInt(this.movieScore);
        dest.writeInt(this.shortVideoScore);
        dest.writeInt(this.gameScore);
    }

    public SpeedTestResult() {
    }

    protected SpeedTestResult(Parcel in) {
        this.wide = in.readDouble();
        this.delay = in.readDouble();
        this.dl = in.readDouble();
        this.up = in.readDouble();
        this.movieScore = in.readInt();
        this.shortVideoScore = in.readInt();
        this.gameScore = in.readInt();
    }

    public static final Creator<SpeedTestResult> CREATOR = new Creator<SpeedTestResult>() {
        @Override
        public SpeedTestResult createFromParcel(Parcel source) {
            return new SpeedTestResult(source);
        }

        @Override
        public SpeedTestResult[] newArray(int size) {
            return new SpeedTestResult[size];
        }
    };
}
